package com.software.process

import java.time.LocalDate
import java.time.format.DateTimeFormatter

object test2 {
  def main(args: Array[String]): Unit = {
    val start = LocalDate.parse("20220101", DateTimeFormatter.BASIC_ISO_DATE)
    val end = LocalDate.parse("20221231", DateTimeFormatter.BASIC_ISO_DATE)
    val formatter = DateTimeFormatter.ofPattern("yyyyMMdd")
    for (date <- start.toEpochDay() to end.toEpochDay()) {
      val localDate = LocalDate.ofEpochDay(date)

      println(localDate.format(formatter))
    }
  }
}
